package timein8;

import java.time.LocalDate;
import org.testng.annotations.Test;

/**
 *
 */
public class LocalDate1 {


    @Test
    public void parseStr() {
        long dayDifference = LocalDate.parse("2021-10-12").toEpochDay() - LocalDate.parse("2021-10-12").toEpochDay();

        System.out.println(dayDifference);

    }

    /**
     * 得到当前的日期
     */
    @Test
    private void t1() {
        System.out.println(LocalDate.now());
    }

}
